package com.example.lj.uav.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class CameraItem implements Parcelable {
    private String name;
    private String focal_length;
    private String sensorW;
    private String sensorH;

    public CameraItem() {
    }

    public CameraItem(String name, String focal_length, String sensorW, String sensorH) {
        this.name = name;
        this.focal_length = focal_length;
        this.sensorW = sensorW;
        this.sensorH = sensorH;
    }

    protected CameraItem(Parcel in) {
        name = in.readString();
        focal_length = in.readString();
        sensorW = in.readString();
        sensorH = in.readString();
    }

    public static final Creator<CameraItem> CREATOR = new Creator<CameraItem>() {
        @Override
        public CameraItem createFromParcel(Parcel in) {
            return new CameraItem(in);
        }

        @Override
        public CameraItem[] newArray(int size) {
            return new CameraItem[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFocal_length() {
        return focal_length;
    }

    public void setFocal_length(String focal_length) {
        this.focal_length = focal_length;
    }

    public String getSensorW() {
        return sensorW;
    }

    public void setSensorW(String sensorW) {
        this.sensorW = sensorW;
    }

    public String getSensorH() {
        return sensorH;
    }

    public void setSensorH(String sensorH) {
        this.sensorH = sensorH;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(name);
        parcel.writeString(focal_length);
        parcel.writeString(sensorW);
        parcel.writeString(sensorH);
    }
}
